package com.yuyou.tas.admin.service.impl;

import com.yuyou.tas.admin.mapper.AuthUserSchoolMapper;
import com.yuyou.tas.admin.service.IAuthUserSchoolService;
import com.yuyou.tas.service.api.admin.entity.AuthUserSchool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yujin.liu on 2018/12/29.
 */
@Service
public class AuthUserSchoolServiceImpl implements IAuthUserSchoolService{

    @Autowired
    private AuthUserSchoolMapper authUserSchoolMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return authUserSchoolMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AuthUserSchool record) {
        return authUserSchoolMapper.insert(record);
    }

    @Override
    public AuthUserSchool selectByPrimaryKey(Long id) {
        return authUserSchoolMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AuthUserSchool record) {
        return authUserSchoolMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByAuthUserId(Long authUserId) {
        return authUserSchoolMapper.deleteByAuthUserId(authUserId);
    }

    @Override
    public List<Long> findBaseSchoolIdByAuthUserId(Long authUserId) {
        return authUserSchoolMapper.findBaseSchoolIdByAuthUserId(authUserId);
    }
}
